package edu.snake.implement.command.frog;

import edu.snake.core.controller.ArenaController.Direction;
import edu.snake.core.controller.command.Algorithm;
import edu.snake.core.model.Position;
import edu.snake.implement.command.AbstractCommand;
import edu.snake.implement.controller.character.BaseCharacterController;


public class FrogMove extends AbstractCommand implements Algorithm {


    public FrogMove(BaseCharacterController controller) {
        super(controller);
    }

    @Override
    public void action() {
        Position position = controller.getModel().getPosition();
        Direction direction = controller.getDirection();
        arenaController.move(position, direction);
    }
}
